textview: Perform tougher handle visibility checks after hiding the popover
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 12 Jun 2015 10:45:03 +0000 (12:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 12 Jun 2015 10:45:03 +0000 (12:45 +0200)
commitc11906fcdbe12bab387ae74830703bcd919249a2
treeffa8e11e772296f417b60b8d65f016343932acd4
parent2be6d09c9ea7341478ac699c144178c2a001a197
textview: Perform tougher handle visibility checks after hiding the popover

The handles might fall outside the visible area, and shouldn't be shown
then. Just call gtk_text_view_update_handles() which will perform these
checks, and keep the handle conveniently hidden.

This was leading to unexpectedly visible handles (and in the
wrong/previous position, the handle code doesn't relocate the widget
it's about to hide) when "select all" was selected in the popover on
a textview needing scrollbars.
and extending the selection beyond the view above and/or below.
gtk/gtktextview.c